package org.elasticsearch.plugin.index.query.cnn;

import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.index.AbstractIndexComponent;
import org.elasticsearch.index.Index;
import org.elasticsearch.index.settings.IndexSettings;
import org.elasticsearch.indices.query.IndicesQueriesRegistry;

public class RegisterLSHQueryParser extends AbstractIndexComponent {

	@Inject
    protected RegisterLSHQueryParser(Index index, @IndexSettings Settings indexSettings,
                                       IndicesQueriesRegistry indicesQueriesRegistry,
                                       LSHQueryParser parser) {
        super(index, indexSettings);
        indicesQueriesRegistry.addQueryParser(parser);
    }

}
